﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLFacade.entities;
using System.Data.Objects.DataClasses;

namespace BL
{
    public partial class Person : IPerson
    {

        public ICredentials Credentials
        {
            get
            {
                return new Credentials { Username = this.Username, Password = this.Password };
            }
            set
            {
                this.Username = value.Username;
                this.Password = value.Password;
            }
        }

        public string FullName
        {
            get { return String.Format("{0} {1}", FirstName, LastName); }
        }
}
}
